@extends('layouts/app')
{{--活动详情--}}

@section('content')
    <div class="weui-cells activity">
        {{--<a class="weui-cell weui-cell_access" href="javascript:;">--}}
            {{--<div class="weui-cell__hd">--}}
                {{--<img src="/img/czk.png" style="width: 100%;" alt="">--}}
            {{--</div>--}}
        {{--</a>--}}
        {{--<div class="weui-cells__title activity_bt">标题</div>--}}
    </div>

    <script>
         function getGivity(){
             $.post("/api/activities",{},function(res){
                if(typeof res === 'string'){
                    res = JSON.parse(res);
                }
                 console.log("res",res);
                 if(res.code ===200){
                     var data ={};
                     data['type'] = 'tivity' ;
                     data['element']= '.activity';
                     data['data'] =res.data.data;
                     A.init(data);
                 }
             });
         }
         getGivity();
    </script>

@endsection

@extends('layouts/footer')
